#!/bin/bash

echo "你的还好是什么？"
select hobby in "编程" "游戏" "篮球" "游泳"
do
	case $hobby in
		"编程")
			echo "编程多敲代码"
			break
			;;
		"游戏")
			echo "少玩游戏"
			break
			;;
		"篮球"|"游泳")
			echo "运动有益健康"
			break
			;;
		*)
			echo "输入有误请重新输入"
	esac
done

echo "你爱好是：${hobby}"
